package com.yfyszk.kingbird.exception;



/**
 * @author wgc
 * @create 2019-07-07 17:23
 */
public class GlobalServiceException extends RuntimeException {


    private Integer code;

    private String msg;

     public GlobalServiceException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public GlobalServiceException(ResultEnum returnCode) {
        this.code = returnCode.getCode();
        this.msg = returnCode.getMsg();
    }
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
